<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.blockchain.front.service.security.SecurityManage"%>
<%@page import="com.blockchain.common.enums.JymmType"%>
<%@page import="com.blockchain.common.enums.IsPass"%>
<html>
<head>
<%
String str = languageDefine.getValue(request, "modifyTradePassword_modifyTradePassword");
String _TITLE_ = str + "- "+configureProvider.getProperty(SystemVariable.SITE_NAME);
CURRENT_SUB_CATEGORY="JYMASRSZ"; 
PC_TITLE_NAME="JYMASRSZ";
SecurityManage manage = serviceSession.getService(SecurityManage.class);
JymmType type=manage.getjymmSz();
%>
<title><%=_TITLE_ %></title>
<%@include file="/WEB-INF/include/meta.jsp"%>
<%@include file="/WEB-INF/include/style.jsp"%>
</head>
<%@include file="/WEB-INF/include/header.jsp"%>
<%@include file="/WEB-INF/include/authenticatedSession.jsp"%>
<div class="autobox">
 <div class="now">
<a href="<%=controller.getViewURI(request, com.blockchain.front.servlets.Index.class)%>" class="orange"><%=languageDefine.getValue(request, "menu_home")%></a>&gt; <a href="<%=controller.getViewURI(request, com.blockchain.front.servlets.security.index.class)%>" class="orange"><%=languageDefine.getValue(request, "menu_safeCenter")%></a> &gt; <%=languageDefine.getValue(request, "setTradePassword_setTradePassword")%>
 </div>
 <div class="assets_center clear po_re zin70">
  <%@include file="/WEB-INF/include/aqzx/left.jsp"%>
  <!--右侧内容-->
  <div class="assets_content w900 right bg_w">
   <div class="safe_center clear" style="padding-left: 0px;">
    <h1 style="margin-top: 0px; margin-bottom: 15px; line-height: 15px;"><%=languageDefine.getValue(request, "setTradePassword_setTradePassword")%></h1>
   </div>
   <form id="tpwdsettinga" class="set_verify" action="<%=controller.getURI(request, Jymmsz.class)%>" method="post" onsubmit="return onSubmit()">
    <ul class="tpwd">
    <%for(JymmType is:JymmType.values()){  %>
    <li><label for="none"><input  <%if(type!=null&&type.toString().equals(is.name())){%>checked="checked"<%}%> id="tpwdsetting" type="radio" value="<%=is.name()%>" name="tpwdsetting"><%=backgroundDataFlag==1?is.getName():backgroundDataFlag==2?is.getNameEn():is.getNameTw()%></label></li>
     <%}%>
     <li><input type="password" id="paypassword" placeholder='<%=languageDefine.getValue(request, "setTradePassword_enterTradePassword")%>' class="text" name="paypassword" /></li>
    </ul>
    	<div class="save_verify">
     <input type="submit" value='<%=languageDefine.getValue(request, "setTradePassword_save")%>'/>
    </div>
   </form>
  </div>
 </div>
</div>
<%@include file="/WEB-INF/include/footer.jsp"%>
<%@include file="/WEB-INF/include/script.jsp"%>
<script type="text/javascript">
<%String error = controller.getPrompt(request,response,PromptLevel.ERROR);if(!StringHelper.isEmpty(error)){%>
	layer.open({
  	title: '<%=languageDefine.getValue(request, "js_tip")%>',
  	content: '<%=languageDefine.getValue(request, error)%>'
});  
<%}%>
<%String info = controller.getPrompt(request,response,PromptLevel.INFO);if(!StringHelper.isEmpty(info)){%>
layer.open({
	title: '<%=languageDefine.getValue(request, "js_tip")%>',
	content: '<%=info%>'
});  
<%}%>

	function onSubmit() {
		var paypassword = $("#paypassword").val();
		if (paypassword == null || paypassword == '') {
			layer.tips('<%=languageDefine.getValue(request, "js_enterTradePassword")%>', '#paypassword', {
				tips : 3
			});
			return false;
		}
		return true;
	}
</script>
	